<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>系统配置-组件配置</title>
<%@ include file="../common/base.jsp" %>
</head>

<body>
<!--head-->
<div id="head">
	<%@ include file="../common/head.jsp" %>
</div>
<!--head end-->
<!--container-->
<div id="container">
    <div id="pageId">05-07</div>
	<!--sidebar-->
    <%@ include file="../common/menu.jsp" %>
    <!--sidebar-->
    <!--main-->
    <div class="main">
    	<div class="location" style="background-position:22px -149px;">
        	系统配置<span>&gt;</span>组件配置
        </div>
        <!--content-->
        <div class="content">
            <div class="con_container">
            	<div class="zuJian">
                  <span class="zj_title">同步回调地址到push服务</span>
                  <input id="sync_button" class="zj_btn" type="button"  value="手动同步" style="cursor: pointer"/><i id="sync_tips" class="zj_tips" style="display: none">同步成功！</i>
                </div>
            </div>
        </div>
        <!--content-->
        <!--foot-->
        <div id="foot">
        	<jsp:include page="../common/foot.jsp"></jsp:include>
        </div>
        <!--foot-->
    </div>
    <!--main-->
</div>
<!--container-->
<script src="${pageContext.request.contextPath}/static/js/basic.js"></script>
<script type="text/javascript">
$(function(){
	$("#sync_button").click(function(){
		$.post("${pageContext.request.contextPath }/system/syncPartnerReceiver", {}, 
				function(data, status){
			if(status == 'success')
				$("#sync_tips").text("同步成功！");
			else
				$("#sync_tips").text("同步失败！");
			$("#sync_tips").show();
		});
	});
});
</script>
</body>
</html>
